<!DOCTYPE html>
	<html>
	<head>
		<title>搜索 {$theme_vars.varName1|default=''} </title>
		<meta name="keywords" content="" />
		<meta name="description" content="">
		<include file="public@head"/>
		<link rel="stylesheet" href="__TMPL__/public/assets/css/search.css">

		<hook name="before_head_end"/>
	</head>
<body class="">
<div class="container shadow">
	<include file="public@nav"/>

	<div class="section clearfix">
		<div class="row">
			<div class="search-content">
				<form class="search-form" name="topsearch" action="/portal/search/index.html" method="get">
					<input class="search-input" type="text" id="key" name="keyword" maxlength="40" value="{$keyword}" placeholder="请输入关键字">
					<button class="search-button" type="submit">搜索</button>
				</form>
			</div>

				<div class="main-title">
					<h3><span class="bold">'{$keyword}'</span> 搜索结果 </h3>
				</div>
				<php>
					$where=[
					'post.create_time'=>['egt',0],
					'post.post_title'=>['like',"%$keyword%"]
					];
				</php>

				<portal:articles item="vo" where="$where" order="post.create_time DESC" page="10">

					<div class="list-boxes">
						<h2><a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">{$vo.post_title}</a>
						</h2>
						<p class="excerpt">{$vo.post_excerpt}</p>
						<div>
							<div class="pull-left">
								<div class="list-actions">
									<a href="javascript:;">点击：<span>{$vo.post_hits}</span></a>
									</a>
								</div>
							</div>
							<a class="btn"
							   href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">查看更多</a>
						</div>
					</div>
				</portal:articles>
				<div class="pagination">
					<page/>
				</div>

		</div>
	</div>
	<include file="public@footer"/>
</div>

<include file="public@scripts"/>
<hook name="before_body_end"/>
</body>
</html>